// Aufgabe_8_1b_wackelnde_Kuerbise

var s = [];

function setup(){
  createCanvas(600, 100);
  background(0);
}

function draw(){
  for(x = 50; x <= 600; x += 100){
    s[x] = smilies(x+5*sin(millis()/50));		
   }
}

function smilies(x){
  noStroke();
  fill(255, 100, 0);
  ellipse(x, 50, 50, 50);
  stroke(0);
  strokeWeight(8);
  point(x+10, 50-5);
  strokeWeight(3);
  line(x-14, 50-6, x-7, 50-6);
  arc(x, 50+2, 30, 30, PI/8, 7*PI/8);
  stroke(200);
  line(x, 100, x, 75);
}
